Eglot: robustify eglot-test-basic-symlink test (bug#70036)
authorJoão Távora <joaotavora@gmail.com>
Tue, 23 Apr 2024 13:43:06 +0000 (08:43 -0500)
committerJoão Távora <joaotavora@gmail.com>
Tue, 23 Apr 2024 13:44:43 +0000 (08:44 -0500)
commit418cade2390e4d6cd7ead1122e62742282e7b2cd
treec4ef7622cc94edf845e111ff4fd6e897de93443b
parent3a4583baf679289857150ee8ecf20b61e59b9d37
Eglot: robustify eglot-test-basic-symlink test (bug#70036)

The previous version of this test was brittle, unstable and
didn't really fail when supposed to (because we need main.cpp to
not be visited when visiting mainlink.cpp).  This new version is
faster and more secure.

* test/lisp/progmodes/eglot-tests.el (eglot--sniffing): Add to the
jsonrpc-event-hook at the end.
(eglot-test-basic-symlink): Robustify test.
test/lisp/progmodes/eglot-tests.el